package com.sanyang.lawyer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@ToString
@TableName(value="hr_workhistory")
public class HrWorkhistory {

    //工作经历id
    @TableId(value="hr_workhistory_id",type= IdType.AUTO)
    private  int hrWorkhistoryId;

    //开始日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date workhistoryStartdate;

    //结束日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date workhistoryEnddate;

    //工作单位
    private  String workhistoryWorkunit;

    //工作职务
    private  String workhistoryJobPosition;

    //工作类别
    private  String workhistoryWorktype;

    //单位性质
    private  String workhistoryWorknature;

    public int getHrWorkhistoryId() {
        return hrWorkhistoryId;
    }

    public void setHrWorkhistoryId(int hrWorkhistoryId) {
        this.hrWorkhistoryId = hrWorkhistoryId;
    }

    public Date getWorkhistoryStartdate() {
        return workhistoryStartdate;
    }

    public void setWorkhistoryStartdate(Date workhistoryStartdate) {
        this.workhistoryStartdate = workhistoryStartdate;
    }

    public Date getWorkhistoryEnddate() {
        return workhistoryEnddate;
    }

    public void setWorkhistoryEnddate(Date workhistoryEnddate) {
        this.workhistoryEnddate = workhistoryEnddate;
    }

    public String getWorkhistoryWorkunit() {
        return workhistoryWorkunit;
    }

    public void setWorkhistoryWorkunit(String workhistoryWorkunit) {
        this.workhistoryWorkunit = workhistoryWorkunit;
    }

    public String getWorkhistoryJobPosition() {
        return workhistoryJobPosition;
    }

    public void setWorkhistoryJobPosition(String workhistoryJobPosition) {
        this.workhistoryJobPosition = workhistoryJobPosition;
    }

    public String getWorkhistoryWorktype() {
        return workhistoryWorktype;
    }

    public void setWorkhistoryWorktype(String workhistoryWorktype) {
        this.workhistoryWorktype = workhistoryWorktype;
    }

    public String getWorkhistoryWorknature() {
        return workhistoryWorknature;
    }

    public void setWorkhistoryWorknature(String workhistoryWorknature) {
        this.workhistoryWorknature = workhistoryWorknature;
    }

    public String getWorkhistorySite() {
        return workhistorySite;
    }

    public void setWorkhistorySite(String workhistorySite) {
        this.workhistorySite = workhistorySite;
    }

    public int getEmpId() {
        return empId;
    }

    public void setEmpId(int empId) {
        this.empId = empId;
    }

    //所在地
    private  String workhistorySite;

    //empid
    private  int empId;

}